﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="edit.aspx.cs" Inherits="Joyintech.Admin.inpiao365.general.ads.edit" %>

<%@ Register Src="~/checkRight.ascx" TagName="checkRight" TagPrefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>广告编辑</title>
    <script language="javascript" type="text/javascript">
        var DG = frameElement.lhgDG;
        function ok() {
            // 这里写你要操作的代码，最后写刷新代码 
            DG.curWin.location.href = DG.curWin.location.href;
        }

        function showSplit(adsType) {
            if (adsType == "")
                return false;

            document.getElementById("float").style.display = "none";
            document.getElementById("sidebar").style.display = "none";
            document.getElementById("fixed").style.display = "none";

            document.getElementById(adsType).style.display = "";            
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="position">
        <span>广告编辑</span>
    </div>
    <div class="searcher">
        <div class="tips" id="float">浮动广告，请在广告代码中加入以下内容：<br />
        &lt;script type=&quot;text/javascript&quot; src=&quot;/module/bairong/static/adFloating.js&quot; 
charset=&quot;utf-8&quot;&gt;&lt;/script&gt;
        </div>
        <div class="tips" id="sidebar" style="display:none;">侧边栏广告，左侧边栏广告示例代码如下：<br />
        &lt;script type=&quot;text/javascript&quot; src=&quot;/module/bairong/static/adFloating.js&quot; 
charset=&quot;utf-8&quot;&gt;&lt;/script&gt;<br />
        &lt;div id=&quot;ad_8&quot;&gt;&lt;img src=&quot;/upload/2012/1/17164851508.jpg&quot; HEIGHT=580 WIDTH=100 
border=&quot;0&quot;&gt;&lt;/div&gt;<br />
&lt;script type=&quot;text/javascript&quot;&gt; <br />
&lt;!--<br />
var ad8=new Ad_Move(&quot;ad_8&quot;);<br />
ad8.SetLocation(document.body.scrollLeft+document.body.offsetWidth-90-100, 10);<br />
//ad8.SetLocation(90, 10);右侧浮代码<br />
ad8.SetType(2);<br />
ad8.Run();<br />
//--&gt;<br />
&lt;/script&gt;</div>
        
        <div class="tips" id="fixed" style="display:none;">固定广告，请自行添加html广告代码</div>
    </div>
    <jui:HFPanel ID="HFPanel1" runat="server">
        <table border="0" cellpadding="0" cellspacing="1" width="98%" align="center" class="datatable">
            <tr class="row1" style="display:none;">
                <td class="check">
                    广告编号：
                </td>
                <td>
                    <jui:HFTextBox ID="AdsId" runat="server" ChineseName="广告编号" PropertyName="AdsId"
                        FieldType="整型" NotNUll="True">0</jui:HFTextBox>
                </td>
            </tr>
            <tr class="row2">
                <td class="check">
                    广告名称：
                </td>
                <td>
                    <jui:HFTextBox ID="AdsName" runat="server" ChineseName="广告名称" PropertyName="AdsName"
                        NotNUll="True" FieldLength="50"></jui:HFTextBox>
                </td>
            </tr>
            <tr class="row1">
                <td class="check">
                    广告类型：
                </td>
                <td>
                    <jui:HFDropDownList ID="ddlAdsType" runat="server" ChineseName="广告类型" PropertyName="AdsType" onchange="showSplit(this.value);">
                        <asp:ListItem Value="float">飘浮广告</asp:ListItem>
                        <asp:ListItem Value="sidebar">侧边栏广告</asp:ListItem>
                        <asp:ListItem Value="fixed">固定广告</asp:ListItem>
                    </jui:HFDropDownList>
                </td>
            </tr>
            <tr class="row2">
                <td class="check">
                    广告代码：
                </td>
                <td>
                    <asp:TextBox ID="txtAdsContent" runat="server" TextMode="MultiLine" Width="400" Height="120"></asp:TextBox>
                </td>
            </tr>
            <tr class="row1">
                <td class="check">
                    启用状态：
                </td>
                <td>
                    <jui:HFCheckBox ID="cbAdsStatus" runat="server" ChineseName="启用状态" PropertyName="AdsStatus" />
                </td>
            </tr>
            <tr class="row2">
                <td class="check">
                    添加时间：
                </td>
                <td>
                    <jui:HFDatePicker ID="AdsAddTime" runat="server" ChineseName="添加时间" PropertyName="AdsAddTime"></jui:HFDatePicker>
                </td>
            </tr>
            <tr class="row1">
                <td class="check">
                    开始时间：
                </td>
                <td>
                    <jui:HFDatePicker ID="AdsStartTime" runat="server" ChineseName="开始时间" PropertyName="AdsStartTime"></jui:HFDatePicker>
                </td>
            </tr>
            <tr class="row2">
                <td class="check">
                    结束时间：
                </td>
                <td>
                    <jui:HFDatePicker ID="AdsEndTime" runat="server" ChineseName="结束时间" PropertyName="AdsEndTime"></jui:HFDatePicker>
                </td>
            </tr>
            <tr class="row1">
                <td colspan="2" class="fontC" align="center">
                    <jui:HFButton ID="btnSave" runat="server" CssClass="BigButton" Text="确定" OnClick="btnSave_Click" />
                    &nbsp;&nbsp;
                    <input type="button" value="返回" class="BigButton" onclick="DG.cancel();" />
                </td>
            </tr>
        </table>
    </jui:HFPanel>
    <uc1:checkRight ID="checkRight1" runat="server" />
    </form>
</body>
</html>
